<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title><c:out value='${group.name }' />-<c:out
	value='${context.title}' /></title>

<link rel="stylesheet" href="/group/css/styles.css" type="text/css">


<c:if test="${isAdmin }">
	<script type="text/javascript"
		src="/group/ui-component/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
	<script type="text/javascript">
	tinyMCE.init({
		 // General options
         mode : "exact",
        elements : "content",
        theme : "advanced",
        plugins : "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
        <c:if test="${lang eq 'local'}"> language: "zh",</c:if>
        
        // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        theme_advanced_source_editor_height:"300",
        // Skin options
        skin : "o2k7",
        skin_variant : "silver"
	});
</script>

</c:if>
<script>
 
var width=window.screen.width;
 
var n=8;
if(width>=1600){
n=10;
 
}else if(width<=800){
n=6;
 	
}
</script>
<script>
var ie =navigator.appName=="Microsoft Internet Explorer"?true:false;
function $(objID){
	return document.getElementById(objID);
}

function  showAddControl(){
	showDivControl('addControl',670,450); 
	 if(parent.document.body.scrollTop>0)
	parent.window.scroll(0,parent.document.body.scrollTop+20);
	 else parent.window.scroll(0,20);
 
	
}

 
</script>
<style>
body {
	font-size: 12px;
	font-family: Verdana, Arial, "宋体";
}

a:link {
	color: #464646;
	text-decoration: none;
}

a:visited {
	color: #464646;
	text-decoration: none;
}

a:hover {
	color: #ed145b;
	text-decoration: underline;
}

a:active {
	color: #ed145b;
	text-decoration: underline;
}

td {
	font-size: 12px
}

/*Date*/
.header {
	font: 12px Arial, Tahoma !important;
	font-weight: bold !important;
	font: 11px Arial, Tahoma;
	font-weight: bold;
	color: #154BA0;
	background: #C2DEED;
	height: 25px;
	padding-left: 10px;
}

.header td {
	padding-left: 10px;
}

.header a {
	color: #154BA0;
}

.header input {
	background: none;
	vertical-align: middle;
	height: 16px;
}

.category {
	font: 12px Arial, Tahoma !important;
	font: 11px Arial, Tahoma;
	color: #92A05A;
	height: 20px;
	background-color: #FFFFD9;
}

.category td {
	border-bottom: 1px solid #DEDEB8;
}

.expire,.expire a:link,.expire a:visited {
	color: #999999;
}

.default,.default a:link,.default a:visited {
	color: #000000;
}

.checked,.checked a:link,.checked a:visited {
	color: #FF0000;
}

.today,.today a:link,.today a:visited {
	color: #00BB00;
}

#calendar_year {
	display: none;
	line-height: 130%;
	background: #FFFFFF;
	position: absolute;
	z-index: 1005;
}

#calendar_year .col {
	float: left;
	background: #FFFFFF;
	margin-left: 1px;
	border: 1px solid #86B9D6;
	padding: 4px;
}

#calendar_month {
	display: none;
	background: #FFFFFF;
	line-height: 130%;
	border: 1px solid #86B9D6;
	padding: 4px;
	position: absolute;
	z-index: 1006;
}

.tableborder {
	background: white;
	border: 1px solid #86B9D6;
}

#year,#month {
	padding-right: 10px;
	background: url(/group/ui-component/calendar/js/onbottom.gif) no-repeat center right;
}
/*Date*/
</style>

<script language="javascript">
		function checkAddMessageForm()
		{
		  if(AddMessageForm.name.value==""||AddMessageForm.name.value.replace(/(^\s*)|(\s*$)/g, "")=="")
		  {
		   alert("<c:out value='${context.msg_title_null }' />");
		   AddMessageForm.name.focus();
		   return false;
		  }
		  if(AddMessageForm.tid.value==""||AddMessageForm.tid.value=="-1")
		  {
		  alert("<c:out value='${context.msg_topic_error }' />");
		  AddMessageForm.tid.focus();
		  return false;
		  }
 
		  return true;
		}

 
			</script>

</head>


<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0"">
<c:import url="/group/ui-component/divdialog/divdialog.html" />
<script type="text/javascript"
	src="/group/ui-component/calendar/js/calendar.js"></script>
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0 align=center>
	<%-- //////////////////////banner --%>
	<tr>
		<td><c:import url="/banner.jsp?currentPlatform=0" /></td>
	</tr>
	<tr>
		<td>
		<TABLE cellSpacing=0 cellPadding=0 width=100% border=0 align=center style="margin-top:10px;">
			<TBODY>
				<TR>
					<c:if test="${isAdmin }">

						<td width=120 nowrap valign=top><c:import
							url="/group/adminMenu.jsp?currentPlatform=0&open=${group.open }" /></td>

					</c:if>
					<TD valign=top>


					<table cellSpacing=0 cellPadding=0 align=left 
						style="border: 1px solid #d4d2d4;margin-left:2px;" width=100%>



						<tr>
							<td nowrap colspan=2 width=100%>
							<table style="border: solid 1px #d4d2d4" width=100%>
								<tr>
									<td width=180 nowrap align=center><a
										href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />">
									<c:if
										test="${not empty group.pic &&fn:indexOf(group.pic,'upload')!=-1 }">
										<img border=0 src="/<c:out value='${group.pic}' />" width=52
											height=64>
									</c:if> <c:if
										test="${empty group.pic ||fn:indexOf(group.pic,'upload')==-1 }">
										<img border=0 src="/group/images/root.gif" width=52 height=64>
									</c:if> </a> <br />
									<a
										href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />">
									<font size="2" face="verdana" color=black><b><c:out
										value='${group.name}' /></b></font></a></td>
									<td valign=top>
									<table width=100%>
										<tr>
											<td nowrap style="width: 65px; overflow: hidden"><b><c:out
												value='${context.owner}' />：</b></td>
											<td><c:import
												url="/group/serverMenu.jsp?currentPlatform=${group.open}" /></td>
										</tr>
										<tr>
											<td><b><c:out value='${context.group_admin}' />:</b></td>
											<td><a
												href="/group/editGroup<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><c:out
												value='${context.edit_group}' /></a>&nbsp;<a
												href="/group/manageTopic<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><c:out
												value='${context.manage_topic}' /></a>&nbsp;<a
												href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&op=index"><c:out
												value='${context.update_index}' /></a>&nbsp;</td>
										</tr>
										<c:if test="${not empty group.info}">
											<tr>
												<td><b><c:out value='${context.text_tag}' />：</b></td>
												<td><c:out value='${group.info}' /></td>
											</tr>
										</c:if>
										<tr>
											<td width=65 valign=top><b><c:out
												value='${context.msg_topic}' />：</b></td>
											<td>
											<div style="overflow: auto;"><a
												<c:if test="${empty param.tid }">style="color:red;font-weight:bold;" </c:if>
												href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><c:out
												value='${context.text_whole}' />(<c:out value='${size}' />)</a>&nbsp;
											<c:set var="count" value="0" /><c:forEach var="topic"
												items="${topics }">

												<a
													<c:if test="${topic.id==param.tid }">style="color:red;font-weight:bold;"</c:if>
													href="/group/groupdetail<c:out value='${context.postfix}' />?tid=<c:out value='${topic.id}' />&id=<c:out value='${param.id}' />">
												<c:out value='${topic.name}' />(<c:set var="topicSize"
													value='${topic.id }size' /><c:out
													value='${requestScope[topicSize]}' />)</a>&nbsp;
												<c:set var="count" value="${count+1 }" />
											</c:forEach></div>
											</td>
										</tr>
									</table>

									</td>
								</tr>
							</table>

							</td>
						</tr>

						<tr>
							<td colspan=2 style="height: 40px;"><input type=button
								onclick="showAddControl()"
								style="border: 0px; cursor: pointer; height: 25px; font-size: 13px; color: #ffffff; background: #36518B;"
								value="<c:out
												value='${context.add_msg}' />">
							<c:if test="${not empty param.tid }"><input type=button
								onclick='window.location.href="/group/replyTemplates${context.postfix}?tid=${param.tid }";'
								style="border: 0px; cursor: pointer; height: 25px; font-size: 13px; color: #ffffff; background: #36518B;"
								value="${context.topic_reply_templates }"></c:if>
							
							</td>
						</tr>
						<tr>

							<td colspan=2>
							<div id="addControl"
								style="display: none; scrolling: auto; valign: center; position: absolute; top: 15%; left: 20%; width: 650px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">
							<form name="AddMessageForm"
								onSubmit="return checkAddMessageForm();" method=post
								action="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${ param.id}' />">
							<input type=hidden name=cmd value="addGmessage">
							<table align=center cellspacing=0 cellpadding=0
								style="border: 1px solid #d4d2d4;" width=100%>

								<tr bgcolor="orange">
									<td nowrap><img src="/group/images/winlogo.gif" border=0>&nbsp;<b><c:out
										value='${context.add_msg}' /></b></td>
									<td align=right><img src="/group/images/close.gif"
										style="cursor: pointer;"
										onClick="hideDivControl('addControl')" border=0 /></td>
								</tr>
								<tr bgcolor="#ffffff">
									<TD style="height: 25px;"><c:out
										value='${context.msg_title}' /></td>
									<td><c:if test='${not empty template }'>
										<input type=text name=name size=60 maxlength=500
											value="${template.name}">
									</c:if> <c:if test='${ empty template }'>
										<input type=text name=name size=60 maxlength=500>
									</c:if> <select name=flag>
										<option value='0'>${context.text_public }</option>
										<option value='-1' selected>${context.text_hidden}</option>
									</select></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<TD align=left style="height: 25px;"><c:out
										value='${context.msg_topic}' /></td>
									<td><select name=tid>
										<option value="-1"><c:out
											value='${context.msg_select_topic}' /></option>
										<c:forEach var="topic" items="${topics }">
											<option value="<c:out value='${topic.id }' />"
												<c:if test="${param.tid==topic.id }" >selected</c:if>><c:out
												value='${topic.name}' /></option>
										</c:forEach>
									</select> <c:if test="${not empty param.tid }">
										<a
											href="/group/groupdetail<c:out value='${context.postfix}' />?tid=<c:out value='${param.tid }' />&id=<c:out value='${param.id}' />&template=true">T</a>
									</c:if></TD>
								</TR>
								<c:if
									test="${(group.open==1||group.open==2)&&group.nav==0 &&not empty tagContainerCount&&tagContainerCount>0}">
									<tr>
										<td>${context.tag_management }</td>
										<td>
										<div style="width: 560px; height: 165px; overflow: auto">
										<table style="border: 1px solid orange;">
											<c:set var="containerCount" value="0" />
											<c:forEach var="tagContainer" items="${tagContainers}">
												<c:if test="${containerCount%2==0 }">
													<tr>
												</c:if>
												<td nowrap>${tagContainer.name }</td>
												<td><select name="tcid${tagContainer.id}" multiple
													size=3 style="width: 150px; overflow: auto;">
													<option value="-1"><c:out
														value='${context.msg_select_tag}' /></option>
													<c:set var="tags" value="${tagContainer.id }tags" />
													<c:forEach var="tag" items="${requestScope[tags]}">
														<option value="<c:out value='${tag.id }' />"><c:out
															value='${tag.name}' /></option>
													</c:forEach>
												</select></td>
												<c:if test="${containerCount%2==1 }">
													</tr>
												</c:if>

												<c:set var="containerCount" value="${containerCount+1 }" />
											</c:forEach>
										</table>
										</div>
										</td>
									</tr>
								</c:if>

								<c:if test="${group.open!=1&&group.open!=2&&group.open!=0 }">
									<tr bgcolor="#ffffff">
										<td align="left" style="height: 25px;"><c:choose>
											<c:when test="${group.open==4 }">
												<c:out value='${context.text_start}' />
											</c:when>
											<c:otherwise>
												<c:out value='${context.source_url}' />
											</c:otherwise>
										</c:choose></td>
										<td><c:if test='${not empty template }'>
											<input type=text
												<c:if test="${group.open==4 }">  readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"</c:if>
												name="source" size=25 maxlength=200
												value="${template.source}">
										</c:if> <c:if test='${empty template }'>
											<input type=text
												<c:if test="${group.open==4 }">  readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"</c:if>
												name="source" size=25 maxlength=200>
										</c:if></TD>
									</TR>


									<tr bgcolor="#ffffff">
										<td align="left" style="height: 25px;"><c:choose>
											<c:when test="${group.open==4 }">
												<c:out value='${context.text_end}' />
											</c:when>
											<c:otherwise>
												<c:out value='${context.source_time}' />
											</c:otherwise>
										</c:choose></td>
										<td><c:if test='${not empty template }'>
											<input type=text
												<c:if test="${group.open==4 }"> readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"</c:if>
												name="stime" size=25 maxlength=40 value="${template.stime}">
										</c:if> <c:if test='${empty template }'>
											<input type=text
												<c:if test="${group.open==4 }"> readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"</c:if>
												name="stime" size=25 maxlength=40>
										</c:if></TD>
									</TR>
								</c:if>
								<tr bgcolor="#ffffff">
									<td align="left"><c:out value='${context.text_abstract}' /></td>
									<td style="height: 65px;"><textarea id="abstract" name=tag
										cols="65" rows="3" class="textarea"><c:if
										test='${not empty template }'>
										<c:out value='${template.tag}' />
									</c:if></textarea></TD>
								</TR>

								<tr bgcolor="#ffffff">
									<TD width=100% style="height: 25px" align=center colspan=2><textarea
										id="content" name=content cols="65" rows="20"><c:if
										test='${not empty template }'>
										<c:out value='${template.content}' />
									</c:if></textarea></TD>
								</TR>


								<tr bgcolor="#ffffff">

									<TD align=center colspan=2><input type=submit
										style="cursor: pointer;"
										value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
										style="cursor: pointer;" type=button
										onclick="hideDivControl('addControl')"
										value="<c:out value='${context.button_cancel}' />"></TD>
								</TR>


							</table>
							</form>
							</div>
							</td>
						</tr>





						<TR>
							<TD valign=top colspan=2>

							<table width=100%>
								<c:if test="${empty param.tid }">
									<c:forEach var="topic" items="${topics }">
										<c:set var="hiddenCount" value="${topic.id }hidden" />
										<c:set var="todayAdded" value="${topic.id }todayAdded" />
										<c:set var="topicSize"
													value='${topic.id }size' /> 

										<tr>
											<td width=100%>
											<table cellpadding=0 cellspacing=0 border=0 width=100%
												align=center>

												<tr bgcolor=#e0e0F3>
													<td align="left" nowrap colspan=3><a
														style="color: #808080"
														href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&tid=<c:out value='${topic.id }'/>"><b><c:out
														value='${topic.name }' /></b>&nbsp;&nbsp;&nbsp;&nbsp;
													<img src="/group/images/more.gif" border=0> <c:out
														value='${context.text_more}' /></a></td><td align=right style="color:#808080">${context.text_all}:<font color=red>${requestScope[topicSize]}</font>,&nbsp;${context.allocation_left}:<font color=red>${requestScope[hiddenCount]}</font>,&nbsp;${context.text_today}:<font color=red>${requestScope[todayAdded]}</font> </td>
												</tr>


												<c:set var="topicmsgs" value="${topic.id }msgs" />
												<c:if test="${not empty requestScope[topicmsgs] }">
													<tr>
														<td width=100% colspan=4>

														<table cellspacing=0 border=0 width=100%>
															<tr bgcolor=#F3F3F3>
																<td align=center width=66%><c:out
																	value='${context.msg_title}' /></td>
																<td width=7% align=center><c:out
																	value='${context.text_click}' /></td>
																<td width=7% align=center><c:out
																	value='${context.text_comment}' /></td>
																<td width=20% align=center><c:out
																	value='${context.operation}' /></td>
														</table>


														</td>
													</tr>
												</c:if>
												<c:forEach var="msg" items="${requestScope[topicmsgs]}">
													<tr <c:if test="${msg[7]==-1 }">bgcolor="#c8c8c8"</c:if>>
														<td align=left width=66%>
														<div style="width: 100%; overflow: hidden;"><a
															href="/group/messagedetail<c:out value='${context.postfix}' />?id=<c:out value='${msg[0]}' />"
															target=_blank><c:if test="${group.open==4 }">[<c:set
																var='reminderDate' value='${msg[0] }reminderDate' />
															<c:out value='${requestScope[reminderDate] }' />]</c:if><c:out
															value='${msg[2] }' /></a></div>
														</td>
														<td width=7% align=center><c:out value='${msg[5]}' /></td>
														<td width=7% align=center><c:set var="commentNum"
															value='${msg[0] }commentNum' /><c:out
															value='${requestScope[commentNum]}' /></td>
														<td width=20% align=right nowrap><c:if
															test="${msg[7]==0 }">
															<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&flag=-1"><font
																color=brown>[${context.text_hidden }]</font></a>&nbsp;</c:if> <c:if
															test="${msg[7]==-1 }">
															<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&flag=0"><font
																color=brown>[${context.text_public }]</font></a>&nbsp;
															</c:if> <c:if test="${msg[6]==0 }">
															<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&up=1"><font
																color=green>[<c:out value='${context.text_top }' />]</font></a>&nbsp;</c:if>
														<c:if test="${msg[6]==1 }">
															<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&up=0"><font
																color=brown>[<c:out
																value='${context.text_top_off }' />]</font></a>&nbsp;</c:if> <c:if
															test="${msg[7]!=100 }">
															<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&flag=100"><font
																color=brown>[T]</font></a>&nbsp;</c:if> <c:if
															test="${msg[7]==100 }">
															<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&flag=0"><font
																color=brown>[NT]</font></a>&nbsp;
															</c:if> &nbsp;<a
															href="/group/editMessage<c:out value='${context.postfix}' />?id=<c:out value='${msg[0]}' />"><font
															color=green>[<c:out value='${context.edit}' />]</font></a>&nbsp;<a
															href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0] }' />&del=1"
															onclick='if(window.confirm("<c:out value='${context.msg_del_now }' />")){return true;}else{return false;}'><font
															color=green>[<c:out value='${context.del}' />]</font></a>&nbsp;
														</td>
													</tr>




												</c:forEach>
											</table>
											</td>
										</tr>

										<tr>
											<td height=50>&nbsp;</td>
										</tr>

									</c:forEach>


								</c:if>
							


								<c:if test="${not empty param.tid }">
								<tr>
								<td    width=100%>
								<table width=100%  >
								<tr bgcolor="#E3EEFB"><td colspan="${analysisUnit+1}" style="font-weight:bold"> ${context.msg_distribution }</td><td align=right colspan="${analysisUnit}" style="color:#808080;font-weight:bold;">${context.text_all}:<font color=red>${all}</font>,&nbsp;${context.allocation_left}:<font color=red>${hidden}</font>,&nbsp;${context.text_today}:<font color=red>${todayAdded}</font> </td>
								</tr>
								
								<tr><td colspan="${analysisUnit*2+1}" style="color:#808080" align=right>
								<form action="/group/groupdetail${context.postfix }?id=${param.id}&tid=${param.tid}" method=post>
								${context.query_date }&nbsp;<input type=text name="inputDate" readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" <c:if test="${not empty param.inputDate }">value="${param.inputDate }"</c:if> size=12><input type=submit style="border: 0px; cursor: pointer;  height: 20px; font-size: 12px; color: #ffffff; background: orange;" value="${context.display_allocation}" >
								</form></td></tr>
								<tr>
								<c:forEach var="addedIndex" begin="0" end="${analysisUnit-1 }" step="1">
								<c:set var="dateCount" value="date${analysisUnit-addedIndex}" />
								<td align=center ><input type=button style="color:#808080;cursor:pointer;font-size:12px;width:76; " onclick="window.location.href='/group/groupdetail${context.postfix}?id=${param.id}&tid=${param.tid}&inputDate=${requestScope[dateCount]}';" value="${requestScope[dateCount]}" ></td>
								</c:forEach>
								<td align=center> <input type=button value="${currentDate}" style="border: 0px; cursor: pointer; width:76;height: 20px; font-size: 12px; color: #ffffff; background: #36518B;" > </td>
								<c:forEach var="addedIndex" begin="1" end="${analysisUnit }" step="1">
								<c:set var="dateCount" value="date${-addedIndex}" />
								<td style="color:#808080;font-weight:bold;" align=center><input type=button style="color:#808080;cursor:pointer;font-size:12px;width:76; " onclick="window.location.href='/group/groupdetail${context.postfix}?id=${param.id}&tid=${param.tid}&inputDate=${requestScope[dateCount]}';" value="${requestScope[dateCount]}" ></td>
								</c:forEach>
								
								
								</tr>
								<tr>
								<c:forEach var="addedIndex" begin="0" end="${analysisUnit-1}" step="1">
								<c:set var="addedCount" value="added${analysisUnit-addedIndex}" />
								<td align=center style="color:#808080;border-bottom:1px solid #d2d4d2"> ${requestScope[addedCount]} </td>
								</c:forEach>
								<td align=center style="color:red;border-bottom:1px solid #d2d4d2"> ${currentAdded} </td>
								<c:forEach var="addedIndex" begin="1" end="${analysisUnit }" step="1">
								<c:set var="addedCount" value="added${-addedIndex}" />
								<td align=center style="color:#808080;border-bottom:1px solid #d2d4d2"> ${requestScope[addedCount]} </td>
								</c:forEach>
								</tr>
								<tr>
								<td colspan="${2*analysisUnit+1}" style="color:#808080" align=center >
								<form action="/group/groupdetail${context.postfix }?id=${param.id}&tid=${param.tid}" method=post>
								<input type=hidden name="cmd" value="addAllocation" >
								${context.allocation_increase_amount }&nbsp;<input type=text size=5 maxlength=10 name=count onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")' ondragenter="return false" onpaste="return !clipboardData.getData('text').match(/D/)" style="ime-mode:disabled;"/>
								${context.allocation_start }&nbsp;<input type=text name="startDate" readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" <c:if test="${not empty param.startDate }">value="${param.startDate }"</c:if> size=12>
								${context.allocation_end }&nbsp;<input type=text name="endDate" readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" <c:if test="${not empty param.endDate }">value="${param.endDate }"</c:if> size=12>
								<input type=submit style="border: 0px; cursor: pointer;  height: 20px; font-size: 12px; color: #ffffff; background: brown;" value="${context.increase_allocation}" >
								</form>							
								
								
								</td></tr><tr>
								<td colspan="${2*analysisUnit+1}" style="color:#808080"  align=center>
								<form action="/group/groupdetail${context.postfix }?id=${param.id}&tid=${param.tid}" method=post>
								<input type=hidden name="cmd" value="reduceAllocation" >
								${context.allocation_reduce_amount }&nbsp;<input type=text size=5 maxlength=10 name=count onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")' ondragenter="return false" onpaste="return !clipboardData.getData('text').match(/D/)" style="ime-mode:disabled;"/>
								${context.allocation_start }&nbsp;<input type=text name="startDate"readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"  <c:if test="${not empty param.startDate }">value="${param.startDate }"</c:if> size=12>
								${context.allocation_end }&nbsp;<input type=text name="endDate" readonly="readonly" onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" <c:if test="${not empty param.endDate }">value="${param.endDate }"</c:if> size=12>
								<input type=submit style="border: 0px; cursor: pointer;  height: 20px; font-size: 12px; color: #ffffff; background: green;" value="${context.reduce_allocation}" >
								</form>							
								
								
								</td>
								
								
								</tr>
								
								
								</table>  
								</td>
								</tr>
								
								
									<tr>
										<td>
										<table cellpadding=3 cellspacing=1 border=0 width=100%
											align=center>
										 

											<c:if test="${not empty msgs }">
												<tr>
													<td width=100% colspan=4>
													<table width=100%>
														<tr bgcolor=#F3F3F3>
															<td align=center width=66%><c:out
																value='${context.msg_title}' /></td>
															<td width=7% align=center><c:out
																value='${context.text_click}' /></td>
															<td width=7% align=center><c:out
																value='${context.text_comment}' /></td>
															<td width=20% align=center><c:out
																value='${context.operation}' /></td>
													</table>
													</td>
												</tr>
											</c:if>
											<c:forEach var="msg" items="${msgs}">
												<tr>
													<td>
													<table cellpadding=0 cellspacing=0 width=100%>
														<tr  <c:if test="${msg[7]==-1 }">bgcolor="#c8c8c8"</c:if>>
															<td align=left width=66%>
															<div style="width: 100%; overflow: hidden;"><a
																href="/group/messagedetail<c:out value='${context.postfix}' />?id=<c:out value='${msg[0]}' />"
																target=_blank><c:if test="${group.open==4 }">[<c:set
																	var='reminderDate' value='${msg[0] }reminderDate' />
																<c:out value='${requestScope[reminderDate] }' />]</c:if><c:out
																value='${msg[2] }' /></a></div>
															</td>
															<td width=7% align=center><c:out value='${msg[5]}' /></td>
															<td width=7% align=center><c:set var="commentNum"
																value='${msg[0] }commentNum' /><c:out
																value='${requestScope[commentNum]}' /></td>
															<td width=20% align=right nowrap><c:if
																test="${msg[7]==0 }">
																<a
																	href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&tid=${param.tid}&gmid=<c:out value='${msg[0]}' />&flag=-1"><font
																	color=brown>[${context.text_hidden }]</font></a>&nbsp;</c:if> <c:if
																test="${msg[7]==-1 }">
																<a
																	href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&tid=${param.tid}&gmid=<c:out value='${msg[0]}' />&flag=0"><font
																	color=brown>[${context.text_public }]</font></a>&nbsp;
															</c:if> <c:if test="${msg[6]==0 }">
																<a
																	href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&up=1&tid=<c:out value='${param.tid}' />"><font
																	color=green>[<c:out value='${context.text_top }' />]</font></a>&nbsp;</c:if>
															<c:if test="${msg[6]==1 }">
																<a
																	href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&up=0&tid=<c:out value='${param.tid}' />"><font
																	color=brown>[<c:out
																	value='${context.text_top_off }' />]</font></a>&nbsp;</c:if> <c:if
																test="${msg[7]!=100 }">
																<a
																	href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&flag=100&tid=<c:out value='${param.tid}' />"><font
																	color=brown>[T]</font></a>&nbsp;</c:if> <c:if
																test="${msg[7]==100 }">
																<a
																	href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0]}' />&flag=0&tid=<c:out value='${param.tid}' />"><font
																	color=brown>[NT]</font></a>&nbsp;</c:if> &nbsp;<a
																href="/group/editMessage<c:out value='${context.postfix}' />?id=<c:out value='${msg[0]}' />"><font
																color=green>[<c:out value='${context.edit}' />]</font></a>&nbsp;<a
																href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&gmid=<c:out value='${msg[0] }' />&del=1"
																onclick='if(window.confirm("<c:out value='${context.msg_del_now }' />")){return true;}else{return false;}'><font
																color=green>[<c:out value='${context.del}' />]</font></a>&nbsp;
															</td>
														</tr>

													</table>


													</td>
												</tr>


											</c:forEach>
											<tr bgcolor="#ffffff">
												<td align=right colspan=4><c:out
													value="${context.msg_page_max}" /> <font color=blue>
												<b><c:out value='${unit }' /> </b> </font><c:out
													value="${context.text_msg}" />，<c:out
													value="${context.text_all}" /> <font color=blue> <b><c:out
													value="${all}" /> </b> </font><c:out value="${context.text_msg}" />&nbsp;&nbsp;
												<br>
												<c:out value="${context.current_page}" />： <font color=blue><b><c:out
													value="${intpageid}" /> </b> </font>/ <font color=blue> <b><c:out
													value="${pagenums}" /> </b> </font> <c:if test="${intpageid>1 }">

													<a
														href="/group/groupdetail<c:out value='${context.postfix}' />?pageid=<c:out value='${intpageid-1}' />&tid=<c:out value='${param.tid}' />&id=<c:out value='${param.id}' />"><c:out
														value="${context.previous_page}" /></a>
												</c:if> <c:if test="${intpageid<pagenums }">

													<a
														href="/group/groupdetail<c:out value='${context.postfix}' />?pageid=<c:out value='${intpageid+1}' />&tid=<c:out value='${param.tid}' />&id=<c:out value='${param.id}' />"><c:out
														value="${context.next_page}" /></a>
												</c:if> &nbsp;<c:out value="${context.text_to}" /> <SELECT
													onChange="javascript:window.location='/group/groupdetail<c:out value='${context.postfix}' />?tid=<c:out value='${param.tid}' />&id=<c:out value='${param.id}' />&pageid='+this.options[this.selectedIndex].value;"
													size=1 name=page>
													<c:set var="current" value="0" />
													<c:forEach begin="1" end="${pagenums}" step="1">
														<c:set var="current" value="${current+1 }" />
														<option value="${current}"
															<c:if test="${current==intpageid }">selected</c:if>><c:out
															value="${current}" /></option>
													</c:forEach>
												</select> <c:out value="${context.text_page}" />&nbsp;&nbsp;</td>
											</tr>

										</table>
										</td>
									</tr>


 
								 


								</c:if>
							</TABLE>



							</TD>
						</TR>

					</TABLE>
					</TD>
				</TR>
			</tbody>
		</TABLE>
		</td>
	</tr>

	<tr>
		<td height=40></td>
	</tr>
	<c:if test='${not empty template }'>
		<script>
showAddControl();
</script>
	</c:if>


	<tr>
		<td><BR>
		<BR>
		<c:import url="/footer.jsp" /></td>
	</tr>

	<c:if test="${not empty msg}">
		<script>alert('${msg }')</script>
	</c:if>
</table>


</body>
</html>

